package com.wkg.music_player.mapper;

import com.wkg.music_player.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MusicMapper {

    //插入音乐
    int insert(String title, String singer, String time, String url, int userid);

    //查询歌曲
    Music selectByOne(String title, String singer);

    //查询音乐id
    Music selectById(int id);

    //删除音乐
    int deleteById(int id);

    //查询所有音乐
    List<Music> findMusic();

    //模糊查询音乐
    List<Music> findMusicByName(String musicName);
}
